/* 具体访问者 */
#pragma once

#include "AbstractVisitor.h"

// 具体访问者类：顾客
class Customer : public Visitor {
public:
    void visit(Apple* apple) {
        std::cout << "Customer " << name_ << " is picking Apple\n";
    }

    void visit(Book* book) {
        std::cout << "Customer " << name_ << " is picking Book\n";
    }
};